home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 114 / macaddict114.cdr / Software / Utilities / macam.0.8.4.dmg / macam sources / app_specific / MyImageDocument.h < prev    next >
Encoding:
Text File  |  2002-11-12  |  1.5 KB  |  43 lines

  1. /*
  2.  macam - webcam app and QuickTime driver component
  3.  Copyright (C) 2002 Matthias Krauss (macam@matthias-krauss.de)
  4.  
  5.  This program is free software; you can redistribute it and/or modify
  6.  it under the terms of the GNU General Public License as published by
  7.  the Free Software Foundation; either version 2 of the License, or
  8.  (at your option) any later version.
  9.  
  10.  This program is distributed in the hope that it will be useful,
  11.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  GNU General Public License for more details.
  14.  
  15.  You should have received a copy of the GNU General Public License
  16.  along with this program; if not, write to the Free Software
  17.  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18.  $Id: MyImageDocument.h,v 1.3 2002/11/12 15:55:34 mattik Exp $
  19.  */
  20.  
  21. #import <Cocoa/Cocoa.h>
  22. #import "MyScrollView.h"
  23.  
  24. @interface MyImageDocument : NSDocument
  25. {
  26.     NSBitmapImageRep* imageRep;
  27.     BOOL started;
  28.     NSBitmapImageRep* deferredOpenImageRep;
  29.     float quality;        //Only used for JPEG
  30. }
  31. - (void) dealloc;
  32. - (void)makeWindowControllers;
  33. - (void)windowControllerDidLoadNib:(NSWindowController *) aController;
  34. - (NSData *)dataRepresentationOfType:(NSString *)aType;
  35. - (BOOL)loadDataRepresentation:(NSData *)data ofType:(NSString *)aType;
  36. - (void) setImageRep:(NSBitmapImageRep*) newRep;
  37. - (NSBitmapImageRep*) imageRep;
  38. - (void) rotateCW:(id)sender;
  39. - (void) rotateCCW:(id)sender;
  40. - (float) quality;
  41. - (void) setQuality:(float)quality;
  42. @end
  43.